package charpter12.lynx;

class Error1 extends Exception{
	
}

class Error2 extends Error1{
	
}

class Error3 extends Error2{
	
}

public class Twentyfive extends TwentyfiveExtends{
	@Override
	public void test() throws Error3{
		throw new Error3();
	}
	
	public static void main(String[] args) {
		Twentyfive tf = new Twentyfive();
		try {
			((TwentyfiveBase) tf).test();
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
}

class  TwentyfiveBase{
	public void test() throws Error1{
		throw new Error1(); 
	}
}

class  TwentyfiveExtends extends TwentyfiveBase{
	public void test() throws Error2{
		throw new Error2();
	}
}